package com.bear.sgg.springboot_11_cache.mapper;


import com.bear.sgg.springboot_11_cache.entity.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

@Mapper
public interface EmployeeMapper {

    Employee selectEmpById(Integer id);

    int insertEmp(Employee employee);

    int deleteEmpById(Integer id);

    @Options(useGeneratedKeys = true, keyProperty = "id")
    int updateEmp(Employee employee);

    Employee selectEmpByLastName(String lastName);
}
